package com.dl.zd;

import java.util.List;

import org.dom4j.Element;

import com.dl.DL;
import com.dom4j.JE;
import com.dom4j.XF;
import com.dom4j.YM;

public class XFJL {
	private static Element cElement = null;
	private static String a = null;
	private static List<Element> list = null;
//账单查询的功能实现类
	public static void XFJL() {
		Element element = JE.zxSJH(DL.num, JE.root);
		list = element.elements();
		for (int i = 0; i < list.size(); i++) {
			System.out.print(list.get(i).getName() + ":");
			Element celement = list.get(i);
			if (celement.getText().equals("")) {
				System.out.println("没有使用，或者余量不足，消费了金额");
			} else {
				System.out.println(celement.getText());
			}
		}
		element = YM.zxSJH(DL.num, YM.root);
		String b = element.element("密码").element("余额").attributeValue("num");
		System.out.println("余额:" + b + "元");
	}
}
